In the Create Test dialog, choose JUnit4, edit the fields and methods you want to generate, and then click OK. In the Choose Destination ... Test types and locations · Create new tests · Run tests · Run with Firebase Test Lab
You write your local unit test class as a JUnit 4 test class. To do so, create a class that contains one or more test methods, usually in module-name/src/test/ ... Create a local unit test class · Mockable Android library
I am using JUnit tests in Android Studio 1.2.2. The tests run without a problem. The only thing that puzzles me is that Android Studio cannot resolve the ...
Right-click your test case and select the JUnit flavor. BTW, it seems to toggle the visibility of the JUnit/Android tests when you change the Build Variants ...